<?php 
    $flightNo = isset($_GET['flightNo'])?$_GET['flightNo']:'';
    $date = isset($_GET['date'])?$_GET['date']:'';
    if(empty($flightNo)){
        echo "Error: Your flightNo is null .<br/>";
    }else{ 
        $url = "http://comp.umetrip.com/umeweb/wl/fc.do?flightNo=".$flightNo."&date=".$date;
        $f = new SaeFetchurl();
        $content = $f->fetch($url);
        if($f->errno() == 0){
            echo $content ;
        }else{
            echo "ERROR URL:".$url."<br/>";
            echo $f->errmsg();
        }
    }
?>